Typing speed challenge in Python